package com.yuan.testmaven;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controlb {
    @Autowired
    controla a;

    @GetMapping("b")
    public int getb() {
        int geta = a.geta();
        return geta + 2;
    }
}
